home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / src / turlwin3.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  982 b   |  41 lines

  1. //    Copyright (c) 1993, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        TURLWindow
  4. //    Include File:    turlwind.h
  5. //    Purpose:    Provide a window for a URL
  6. //    Remarks/Portability/Dependencies/Restrictions:
  7. //    Revision History:
  8. //        12-27-93    created
  9. //        02-09-94    Split all members into seperate files.
  10. #include"turlwind.h"
  11. #include"trace.h"
  12.  
  13. TURLWindow::~TURLWindow()    {
  14. //    Purpose:    Destructor for the URL window.
  15. //    Arguments:    void
  16. //    Return Value:    none
  17. //    Remarks/Portability/Dependencies/Restrictions:
  18. //    Revision History:
  19. //        01-30-94    created
  20.  
  21. #ifndef RELEASE
  22.     trace("Destroying window.");
  23. #endif // RELEASE
  24.     //    If there is a view, remove it, destroy it.
  25.     if(TURLV != NULL)    {
  26.         remove(TURLV);
  27.         destroy(TURLV);
  28.     }
  29.  
  30.     //    If there is a collection, free it.
  31.     if(TNSCp_visited != NULL)    {
  32.         destroy(TNSCp_visited);
  33.     }
  34.  
  35.     //    Set the window number as of now being free.
  36.     Number(number);
  37.  
  38.     //    Disable some commands.
  39.     disableCommand(cmSearchIndex);
  40. }
  41.